package com.ldzy.dao;

import com.github.pagehelper.Page;
import com.ldzy.pojo.Buy;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

public interface BuyMapper {
    @Select("select * from buy ")
    List<Buy> search(@Param("page") int page,@Param("size")int size);
    @Insert("insert into buy(cid,uid,mid,csymptom,num) values(#{cid},#{uid},#{mid},#{csymptom},#{num})")
    int add(Buy buy);
}
